<div class="layui-tab-item">
    <form class="layui-form" action="">
        <div class="layui-input-inline"  style="display: none;">
            <select lay-verify="" type="hidden"></select>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">允许注册新用户</label>
            <div class="layui-input-block" style="margin-left: 130px;width: 200px">
                <select name="WEB_IS_REGISTER">
                    <option value="1" #(optionCompare('WEB_IS_REGISTER', '1') ? 'selected': '')>允许</option>
                    <option value="0" #(optionCompare('WEB_IS_REGISTER', '0') ? 'selected': '')>不允许</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">新用户默认角色</label>
            <div class="layui-input-block" style="margin-left: 130px;width: 200px">
                <select name="WEB_REGISTER_DEFAULT_ROLE">
                    <option value="user" #(optionCompare('WEB_REGISTER_DEFAULT_ROLE', 'user') ? 'selected': '')>普通用户</option>
                    <option value="contribute" #(optionCompare('WEB_REGISTER_DEFAULT_ROLE', 'contribute') ? 'selected': '')>文章贡献</option>
                    <option value="editor" #(optionCompare('WEB_REGISTER_DEFAULT_ROLE', 'editor') ? 'selected': '')>文章编辑</option>
                    <option value="admin" #(optionCompare('WEB_REGISTER_DEFAULT_ROLE', 'amin') ? 'selected': '')>管理员</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">登录验证码</label>
            <div class="layui-input-block" style="margin-left: 130px;width: 200px">
                <select name="WEB_OPEN_CAPTCHA">
                    <option value="1" #(optionCompare('WEB_OPEN_CAPTCHA', '1') ? 'selected': '')>开启</option>
                    <option value="0" #(optionCompare('WEB_OPEN_CAPTCHA', '0') ? 'selected': '')>关闭</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">QQ登录</label>
            <div class="layui-input-inline" style="margin-left: 130px;width: 200px">
                <select name="QQ_LOGIN">
                    <option value="0" #(optionCompare('QQ_LOGIN', '0') ? 'selected': '')>关闭</option>
                    <option value="1" #(optionCompare('QQ_LOGIN', '1') ? 'selected': '')>开启</option>
                </select>
            </div>
            <label class="layui-form-label">APP_ID</label>
            <div class="layui-input-inline">
                <input type="text" value="#option('QQ_APP_ID')" name="QQ_APP_ID" placeholder="请输入QQ_APP_ID" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">APP_KEY</label>
            <div class="layui-input-inline">
                #if(loginUser.hasAdminPage())
                <input type="text" value="#option('QQ_APP_KEY')" name="QQ_APP_KEY" placeholder="请输入QQ_APP_KEY" autocomplete="off" class="layui-input">
                #else
                <input type="text" value="无权限查看" class="layui-input">
                #end
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">微信小程序登录</label>
            <div class="layui-input-inline" style="margin-left: 130px;width: 200px">
                <select name="WX_OFFIACCOUNT_LOGIN">
                    <option value="0" #(optionCompare('WX_OFFIACCOUNT_LOGIN', '0') ? 'selected': '')>关闭</option>
                    <option value="1" #(optionCompare('WX_OFFIACCOUNT_LOGIN', '1') ? 'selected': '')>开启</option>
                </select>
            </div>
            <label class="layui-form-label">APP_ID</label>
            <div class="layui-input-inline">
                <input type="text" value="#option('WX_OFFIACCOUNT_APP_ID')" name="WX_OFFIACCOUNT_APP_ID" placeholder="请输入WX_OFFIACCOUNT_APP_ID" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">APP_KEY</label>
            <div class="layui-input-inline">
                #if(loginUser.hasAdminPage())
                 <input type="text" value="#option('WX_OFFIACCOUNT_APP_KEY')" name="WX_OFFIACCOUNT_APP_KEY" placeholder="请输入WX_OFFIACCOUNT_APP_KEY" autocomplete="off" class="layui-input">
                #else
                 <input type="text" value="无权限查看" class="layui-input">
                #end
            </div>
            <label class="layui-form-label">二维码跳转页面</label>
            <div class="layui-input-inline">
                <input type="text" value="#option('WX_OFFIACCOUNT_PAGE')" name="WX_OFFIACCOUNT_PAGE" placeholder="请输入WX_OFFIACCOUNT_PAGE" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="pear-btn pear-btn-md pear-btn-primary addBtn" lay-submit lay-filter="optionForm"><i class="fa fa-check" aria-hidden="true"></i> 保存设置</button>
            </div>
        </div>
    </form>
</div>
